//*** Guidance generated code ***//
using System.Linq;
using System.Diagnostics.Contracts;
using System.Collections.Generic;
using System;

namespace Survey.Business
{
    public class Templates
    {
        public const string String = "validator.rules[\"{0}\"] =  {{required: {1}, minlength: {2}, maxlength: {3} }};";
        public const string Number = "validator.rules[\"{0}\"] =  {{required: {1}, min: {2}, max: {3} }};";
        public const string RangeLength = "validator.rules[\"{0}\"] =  {{required: {1}, rangelength:[{2},{3}] }};";
        public const string Range = "validator.rules[\"{0}\"] =  {{required: {1}, range:[{2},{3}] }};";
        public const string Reference = "validator.rules[\"{0}\"] =  {{required: {1} }};";
        public const string MessageRequired = "validator.messages[\"{0}\"] =  {{required: \"{1}\" }};";
        public const string MessageRange = "validator.messages[\"{0}\"] =  {{required: \"{1}\", range: $.validator.format(\"{2}\") }};";
        public const string MessageRangeLength = "validator.messages[\"{0}\"] =  {{required: \"{1}\", rangelength: $.validator.format(\"{2}\") }};";

        public const string PatternEmailStrict = @"^(([^<>()[\]\\.,;:\s@\""]+"
                                     + @"(\.[^<>()[\]\\.,;:\s@\""]+)*)|(\"".+\""))@"
                                     + @"((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}"
                                     + @"\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]{2,}\.)+"
                                     + @"[a-zA-Z]{2,}))$";
    }
}